package com.wpg.demo.spring.xml.validation;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @author ChangWei Li
 * @version 2017-02-22 13:37
 */
@Getter
@Setter
@ToString
public class Person {

    @NotNull
    private String name;

    @Range(min = 1L, max = 120L)
    private int age;

}
